﻿<dx:DXWindow xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"  x:Class="SQLQuery.UI.Comparsion.DataRowDetailedWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="数据内容对比" 
        Height="400" Width="600" 
        WindowStartupLocation="CenterScreen"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars">
    <Grid>
        <dxb:BarManager Name="barManager1">
            <dxb:BarManager.Items>
                <dxb:BarButtonItem Name="contrastPKData" Content="主键对比" ItemClick="contrastPKData_ItemClick"/>
                <dxb:BarButtonItem Name="contrastData" Content="现有列对比" ItemClick="contrastData_ItemClick"/>
                <dxb:BarButtonItem Name="syncData" Content="同步数据" ItemClick="syncData_ItemClick"/>
                <dxb:BarCheckItem Name="isSyncScrollBar" Content="是否同步滚动条" Alignment="Far" />
            </dxb:BarManager.Items>
            <dxb:BarManager.Bars>
                <dxb:Bar>
                    <dxb:Bar.DockInfo>
                        <dxb:BarDockInfo ContainerType="Top"/>
                    </dxb:Bar.DockInfo>
                    <dxb:Bar.ItemLinks>
                        
                        <dxb:BarButtonItemLink BarItemName="contrastData"/>
                        <dxb:BarButtonItemLink BarItemName="contrastPKData"/>
                        <dxb:BarItemLinkSeparator />
                        <dxb:BarButtonItemLink BarItemName="syncData"/>
                        
                    </dxb:Bar.ItemLinks>
                </dxb:Bar>
               
                <dxb:Bar Caption="Status Bar" IsStatusBar="True" Name="statusBar">
                    <dxb:Bar.DockInfo>
                        <dxb:BarDockInfo ContainerType="Bottom" />
                    </dxb:Bar.DockInfo>
                    <dxb:Bar.ItemLinks>
                        <dxb:BarCheckItemLink BarItemName="isSyncScrollBar"/>
                    </dxb:Bar.ItemLinks>
                </dxb:Bar>
            </dxb:BarManager.Bars>
            <dxdo:DockLayoutManager>
                <dxdo:LayoutGroup>
                    <dxdo:LayoutPanel Name="layoutSource" Caption="源数据" AllowClose="False" AllowHide="False">
                        <dxg:GridControl Name="sourceGrid">
                            <dxg:GridControl.View>
                                <dxg:TableView Name="tableView1" ShowGroupPanel="False" WaitIndicatorType="Panel" MultiSelectMode="Row"
                                               ScrollViewer.ScrollChanged="tableView1_ScrollChanged"/>
                            </dxg:GridControl.View>
                        </dxg:GridControl>
                    </dxdo:LayoutPanel>
                    <dxdo:LayoutPanel Name="layoutTarget" Caption="目标数据" AllowClose="False" AllowHide="False">
                        <dxg:GridControl Name="targetGrid">
                            <dxg:GridControl.View>
                                <dxg:TableView Name="tableView2" ShowGroupPanel="False" WaitIndicatorType="Panel" MultiSelectMode="Row"
                                               ScrollViewer.ScrollChanged="tableView2_ScrollChanged"/>
                            </dxg:GridControl.View>
                        </dxg:GridControl>
                    </dxdo:LayoutPanel>
                </dxdo:LayoutGroup>
            </dxdo:DockLayoutManager>
        </dxb:BarManager>
    </Grid>
</dx:DXWindow>
